package com.zc.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * 文章类别实体类
 */
@TableName("t_category")
public class Category {

    @TableId(type = IdType.AUTO)
    private Integer id; //文章类别编号

    private String categoryName; //文章类别名称

    private boolean categoryShow=false; //是否显示

    private Integer showSort;

    @TableField(select = false)
    private List<Article> articleList; // 所属类别所有文章集合


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public boolean isCategoryShow() {
        return categoryShow;
    }

    public void setCategoryShow(boolean categoryShow) {
        this.categoryShow = categoryShow;
    }

    public Integer getShowSort() {
        return showSort;
    }

    public void setShowSort(Integer showSort) {
        this.showSort = showSort;
    }

    public List<Article> getArticleList() {
        return articleList;
    }

    public void setArticleList(List<Article> articleList) {
        this.articleList = articleList;
    }

}
